package com.fujifilm.project.plan.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import jakarta.annotation.Nullable;
import lombok.Data;

/**
 * 
 * 
 * @date 2025年6月05日
 * @time 22:20:50
 * @description
 * 
 */
@Data
@Table("user") // 数据库表名
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 
     * <pre>
     * 用户ID
     * </pre>
     */
    @Id(keyType = KeyType.Auto)
    @Column("id")
    private Long id;

    /**
     * 
     * <pre>
     * 用户名
     * </pre>
     */
    @Column("username")
    private String username;

    /**
     * 
     * <pre>
     * 密码
     * </pre>
     */
    @Column("password")
    private String password;

    /**
     * 
     * <pre>
     * 邮箱
     * </pre>
     */
    @Column(value = "email")
    @Nullable
    private String email;

    /**
     * 
     * <pre>
     * 真实姓名
     * </pre>
     */
    @Column(value = "real_name")
    @Nullable
    private String realName;

    /**
     * 
     * <pre>
     * 手机号
     * </pre>
     */
    @Column(value = "phone")
    @Nullable
    private String phone;

    /**
     * 
     * <pre>
     * 状态(0-禁用 1-启用)
     * </pre>
     */
    @Column(value = "status")
    private Integer status;

    /**
     * 
     * <pre>
     * 创建时间
     * </pre>
     */
    @Column(value = "create_time")
    @Nullable
    private LocalDateTime createTime;

    /**
     * 
     * <pre>
     * 更新时间
     * </pre>
     */
    @Column(value = "update_time")
    @Nullable
    private LocalDateTime updateTime;
}
